package test;

public class Calculator {
	public int operation(int a, int b, Operation op) {
		if(op==Operation.sum)
			return a + b;
		if(op==Operation.subs)
			return a - b;
		if(op==Operation.mult)
			return a*b;
		throw new RuntimeException("not allowed operation");
	}
	public int sum(int a, int b, int c) {
		return a+b+c;
	}
	public int sum(int a, int b) {
		return a+ b;
	}
	public int substract(int a, int b) {
		return a - b;
	}
}
